data(diamonds) plot_ly(data = diamonds, x = ~carat, y = ~price, type = "scatter", mode = "markers", color = ~cut)